/*
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c), 2003-2011,  Jin Chen and Alan M. MacEachren, GeoVISTA Center, Penn State University
 * All Rights Researved.
 *
 * This library is developed and distributed for free usage,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * You can redistribute and/or modify it under the terms of the
 * Simplified BSD License
 *
 *
 *
 *
 *
 *
 *
 *  Act as a delegate of the plotcanvas, not finished yet

 * @author: jin Chen
 * @date: Jun 13, 2003
 * @version: $VERSION$
 */
package edu.psu.geovista.app.pcp.plot.layer;

import edu.psu.geovista.app.plot.layer.Layer;

import java.awt.*;

public class BackgroundLayer extends RuntimeLayer{
    public BackgroundLayer(String name,Dimension size) {
        this.setSize(size )  ;
        //this.setLevel(Layer.BOTTOM ) ;
        this.setName(name);
        //this.setColor(new Color(0,0,0,255));
        this.configInfo.setConfig(ConfigInfo.Attr_COLOR,new Color(0,0,0,255));
        this.paintLayer() ;
        this.setType(Layer.TYPE_BG );

    }

    public  void paintComponent(Graphics g){
        //System.out.println(" "+g.getColor() );
        g.fillRect(0,0,this.getSize().width ,this.getSize().height );

    }
}
